package com.iris.live.services.report;

/**
 * 封装Excel中的Cell信息
 * Created by 林平 on 2016/12/12.
 */
public class Cell {
    private Object value;
    private int colIndex; //显示的列索引
    private String dataType; //int, string, date, double

    private boolean isColorRed; //字体是否设置为 红色

    public Cell(Object value, int colIndex) {
        this(value, "string", colIndex);
    }

    public Cell(Object value, int colIndex, boolean isColorRed) {
        this(value, "string", colIndex, isColorRed);
    }

    public Cell(Object value, String dataType, int colIndex, boolean isColorRed) {
        this.value = value;
        this.dataType = dataType;
        this.colIndex = colIndex;
        this.isColorRed = isColorRed;
    }

    public Cell(Object value, String dataType, int colIndex) {
        this.value = value;
        this.dataType = dataType;
        this.colIndex = colIndex;
    }

    public Object getValue() {
        return value;
    }

    public String getDataType() {
        return dataType;
    }

    public int getColIndex() {
        return colIndex;
    }

    public boolean isColorRed() {
        return isColorRed;
    }

}
